import Mock from 'mockjs';
export default [
  {
    type: 'GET',
    url: '/host/cloud/road/congestion',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data": {
          "congestionValue|0-25": 10,
        }
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/road/speed',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/road/density',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/road/warning',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data": {
          "total|100-300": 100,
          "alarm|100-300": [
            {
              "detail|2-10": 'x',
              "type": 'xxx'
            }
          ]
        }
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/road/time',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/road/stop',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'GET',
    url: '/host/cloud/road/overview',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data": {
          "speed|20-100": 40,
          "density|10-80": 20,
          "delay|10-500": 150
        }
      })
    }
  }
]